

<% form_for(@user_module) do |f| %>
  <h1>Enable New Module</h1>
  <%= f.error_messages %>
  <p>
    <%= f.label "Select an Input" %><br />
    <%= f.collection_select(:input_id, Input.all, :id, :name) %>
  </p>

  <p>
    <%= f.label "Select an Output" %><br/>
    <%= f.collection_select(:output_id, Output.all, :id, :name) %>
  </p>

  <p>
    <%= f.submit 'Configure' %>
  </p>
<% end %>
